package com.zg.nacos.domain.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

/**
 * <p>Description: </p>
 *
 * @author zhanfeng.liang
 * @since 2025/6/26 15:16
 */

@Data
@ApiModel
public class PermissionEditReq extends NacosReq {

    @ApiModelProperty(value = "角色名称", required = true)
    @NotEmpty(message="角色名称不能为空")
    private String role;

    @ApiModelProperty(value = "资源名称", required = true)
    @NotEmpty(message="资源名称不能为空")
    private String resource;

    @ApiModelProperty(value = "操作", required = true)
    @NotEmpty(message="操作不能为空")
    private String action;
}
